import unittest
env="prod"
class testAdd(unittest.TestCase):

    skip=False
    @staticmethod
    def check(env):
        if(env=="prod"):
            print("线上环境不允许该case")
            return True
        else:
            return False


    def test_add(self):
        if testAdd.check(env):
            return
        self.assertTrue(1==1)

    def test_add2(self):
        self.assertTrue(1<2)

# import nnreport
# suit=unittest.defaultTestLoader.discover(".","pytest_test*")
# f=nnreport.BeautifulReport(suit)
# f.report("filereport","test",log_path=".")
